package org.spring.blog.base;

import org.spring.blog.utils.LRConstants;

public class BaseService {

    protected int checkPage(int _page) {
        return Math.max(_page, LRConstants.list_default_page_num);
    }

    protected int checkSize(int _size) {
        return Math.max(_size, LRConstants.list_min_page_size);

    }
}
